<template>
  <div class="">
    <h1>我的</h1>
    <p>这是我的页面里面的内容</p>
    <h3>用户ID：{{ getUserId }}</h3>
    <h3>用户ID：{{ $route.params.userId }}</h3>
    <h3>用户ID：{{ $route.query.name }}</h3>
    <h3>用户ID：{{ $route.query.age }}</h3>
    <h3>用户ID：{{ $route.query.height }}</h3>
  </div>
</template>

<script>
export default {
  name:"mine",
  computed: {
    getUserId() {
      return this.$route.params.userId;
    },
  },
  created(){
    console.log("mine已经创建");
  },
  destroyed(){
    console.log("mine已经被销毁");
  }

};
</script>

<style></style>
